{% extends 'index.html' %}
{% block header %}
	<script type="text/javascript" src="static/js/config.js"></script>
{% endblock %}
{% block content %}
<h2>Load Silk Config</h2>

<form id="config_form" method="POST" action="load_config">
	<input type="submit" name="load" value="{% if loaded %}Reload{% else %}Load{% endif %} Configuration" />
	{% if write_back %}
	<input type="checkbox" name="write" id="write"{% if persist.write %} checked="checked"{% endif %}/>
	<label for="write">write back to disk</label>
	{% endif %}
	<img id="ajax_indicator" src="/static/img/ajax-loader.gif" style="position: relative; top: 4px; margin-left:10px; display: none;" />
	&nbsp;&nbsp;{% if loaded %}A{% else %}No{% endif %} valid configuration is currently loaded.
	<br />
	<textarea rows="40" cols="140" id="config_file" name="config_file">{{ config | e }}</textarea>
	<br />
	<input type="submit" name="load" value="{% if loaded %}Reload{% else %}Load{% endif %} Configuration" />
</form>
{% endblock %}
